package com.resourcestore.dao;

import java.util.List;

import com.resourcestore.dao.BaseDao;
import com.resourcestore.model.CourseFileSrcCatePrivate;
import com.resourcestore.utils.tag.Pagination;

public class CourseFileSrcCatePrivateDao extends BaseDao {

	public List<CourseFileSrcCatePrivate> selectCourseFileSrcCatePrivate(CourseFileSrcCatePrivate courseFileSrcCatePrivate){
		List<CourseFileSrcCatePrivate> list = this.queryForList("selectCourseFileSrcCatePrivate",courseFileSrcCatePrivate);
		return list;
	}
	
	public List<CourseFileSrcCatePrivate> selectCourseFileSrcCatePrivateByParentId(CourseFileSrcCatePrivate courseFileSrcCatePrivate){
		List<CourseFileSrcCatePrivate> list = this.queryForList("selectCourseFileSrcCatePrivateByParentId",courseFileSrcCatePrivate);
		return list;
	}
	
	public List<CourseFileSrcCatePrivate> selectCourseFileSrcCatePrivateByIsPre(CourseFileSrcCatePrivate courseFileSrcCatePrivate){
		List<CourseFileSrcCatePrivate> list = this.queryForList("selectCourseFileSrcCatePrivateByIsPre",courseFileSrcCatePrivate);
		return list;
	}
	
	public List<CourseFileSrcCatePrivate> selectCourseFileSrcCatePrivateByIsPreAndTrdId(CourseFileSrcCatePrivate courseFileSrcCatePrivate){
		List<CourseFileSrcCatePrivate> list = this.queryForList("selectCourseFileSrcCatePrivateByIsPreAndTrdId",courseFileSrcCatePrivate);
		return list;
	}
	
	@SuppressWarnings("unchecked")
	public List<CourseFileSrcCatePrivate> selectCourseFileSrcCatePrivatePage(CourseFileSrcCatePrivate courseFileSrcCatePrivate,Pagination pagination){
		List<CourseFileSrcCatePrivate> list = this.queryForPage("selectCourseFileSrcCatePrivatePage", courseFileSrcCatePrivate,pagination);
		return list;
	}
	
	public int queryCourseFileSrcCatePrivateNum(CourseFileSrcCatePrivate courseFileSrcCatePrivate) {
		return this.queryNum("selectCourseFileSrcCatePrivateCount", courseFileSrcCatePrivate);
	}
	
	
	public CourseFileSrcCatePrivate selectCourseFileSrcCatePrivateById(CourseFileSrcCatePrivate courseFileSrcCatePrivate){
		return (CourseFileSrcCatePrivate)this.queryForObject("selectCourseFileSrcCatePrivateById", courseFileSrcCatePrivate);
	}
	
	public void insertCourseFileSrcCatePrivate(CourseFileSrcCatePrivate courseFileSrcCatePrivate){
		this.insert("insertCourseFileSrcCatePrivate", courseFileSrcCatePrivate);		
	}
	
	public void updateCourseFileSrcCatePrivate(CourseFileSrcCatePrivate courseFileSrcCatePrivate){
		this.update("updateCourseFileSrcCatePrivate", courseFileSrcCatePrivate);	
	}
	
	public void deleteCourseFileSrcCatePrivate(CourseFileSrcCatePrivate courseFileSrcCatePrivate){
		this.delete("deleteCourseFileSrcCatePrivate", courseFileSrcCatePrivate);
	}
	
	public void deleteMoreCourseFileSrcCatePrivate(CourseFileSrcCatePrivate courseFileSrcCatePrivate){
		this.delete("deleteMoreCourseFileSrcCatePrivate", courseFileSrcCatePrivate);
	}
}
